//
//  Model.m
//  WatchBallSqlite
//
//  Created by lanou3g on 15/6/5.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "Model.h"
#import "NSObject+NSCoding.h"
@implementation Model
-(void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}

- (void)encodeWithCoder:(NSCoder *)aCoder{
    [self autoEncodeWithCoder:aCoder];
    
}
-(instancetype)initWithCoder:(NSCoder *)aDecoder{
    if (self = [super init]) {
        [self autoDecode:aDecoder];
    }
    return self;
}
+ (instancetype)modelWithID:(NSString *)ID {

    return [[Model alloc]initWithID:ID ];

}

- (instancetype)initWithID:(NSString *)ID {
    if (self = [super init]) {
        self.ID = ID;
       
    }
    return self;
}

-(NSString *)description{
    return [NSString stringWithFormat:@"%@",self.ID];
}

@end
